package cn.gs.util.net;

// @author gs
public interface DisconnectListener {

    /**
     *
     * @return TRUE allow disconnect FALSE disallow disconnect
     */
    boolean onDisconnect(Throwable th);

    public class UnableReconnectException extends Exception {

        public UnableReconnectException() {
        }

        public UnableReconnectException(String message) {
            super(message);
        }

        public UnableReconnectException(Throwable cause) {
            super(cause);
        }

        public UnableReconnectException(String message, Throwable cause) {
            super(message, cause);
        }
    }
}
